package com.project.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class Announcement implements Serializable {
    //id
    private  Long id;
    //标题
    private  String title;
    //系别
    private String department;
    //内容
    private String content;
    //发布者id
    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private Long createUserId;
    //修改者
   @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充字段
    private Long modifiedUserId;
    //发布时间
    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private LocalDateTime createTime;
    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充字段
    private LocalDateTime modifiedTime;


}
